Fix propagation of build script args
authorAlex Crichton <alex@alexcrichton.com>
Wed, 10 Jun 2015 02:31:47 +0000 (19:31 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 10 Jun 2015 02:31:47 +0000 (19:31 -0700)
commite6d394a2d74c1d42b3a7ea3a783c219c4710cd25
treecca8e7763cd9ce838bcad9616646aeeb494dc97e
parent1ae683a1496be2e35f213e3e11645adcb3ed62b1
Fix propagation of build script args

It looks like the recent restructuring into an O(N) pass had a regression
(reported in #1695) where deps-of-deps didn't have their build script arguments
propagated upwards. This fixes the caching logic to take into account the
profile as part of the key to ensure that we traverse targets twice if
necessary.

Closes #1695
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/custom_build.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_compile_custom_build.rs